﻿using AutoMapper;
using B.S.Traceable.Domain.Entitiy;
using B.S.Traceable.Write.Api.Application.Command.Farming;
using B.S.Traceable.Write.Api.Application.Command.Traceable;

namespace B.S.Traceable.Write.Api
{
    public class AutoMapperFIle : Profile
    {
        public AutoMapperFIle()
        {
            CreateMap<CreateTraceableCommand,TraceableModel>().ReverseMap();
            CreateMap<UpdateTraceableCommand, TraceableModel>().ReverseMap();
            CreateMap<CreateFarmingCommand, FarmingInformation>().ReverseMap();
        }
    }
}
